package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2022/11/15 14:50
 */
@Controller
@ResponseBody
public class HelloController {


    @RequestMapping("hello")
    public String hello() {
        return "hello world";
    }

    public HelloController() {
        System.out.println("实例化");
    }
}
